import request from '@/utils/request'

// 查询学期列表
export function listSemester(gradeId) {
  return request({
    url: '/recitation_admin/semester/list',
    method: 'get',
    params: gradeId
  })
}

// 新增学期
export function addSemester(data) {
  return request({
    url: '/recitation_admin//semester/add',
    method: 'post',
    data: data
  })
}

// 修改学期
export function updateSemester(data) {
  return request({
    url: '/recitation_admin/semester/update',
    method: 'put',
    data: data
  })
}

// 删除学期 这个接口不一定对 待写
export function delSemester(semesterId) {
  return request({
    url: '/recitation_admin/semester/' + semesterId,
    method: 'delete',
    // data:gradeId
  })
}
